package com.itheima.demo.stratyge;
public class StrategyPattern{
	public static void main(String[] args) {
		Context c=new Context();
		Strategy s=new ConcreteStrategyA();
		c.setStrategy(s);
		c.strategyMethod();
		System.out.println("-----------------");
		s=new ConcreteStrategyB();
		c.setStrategy(s);
		c.strategyMethod();
	}
}
